home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11765 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Defining accuracy
  5. Date: Tue, 26 Mar 96 00:31:15 GMT
  6. Organization: none
  7. Message-ID: <827800275snz@genesis.demon.co.uk>
  8. References: <DoKBM0.8L3.B.midge@bath.ac.uk> <827684758snz@genesis.demon.co.uk> <4j6pkf$e68@airdmhor.gen.nz>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <4j6pkf$e68@airdmhor.gen.nz>
  15.            gumboot@airdmhor.gen.nz "Simon Hosie" writes:
  16.  
  17. >Lawrence Kirby:
  18. >> In article <DoKBM0.8L3.B.midge@bath.ac.uk> py3heh@bath.ac.uk "H E Harmer"
  19. > writes:
  20. >
  21. >> >Is there a way of defining the precision of the 'double' and 'long double' 
  22. >> >variables when compiling with an ANSI C compiler? I am looking to 
  23. >> >hopefully doubling it or better.
  24. >
  25. >> Generally no - the compiler defines the precision of the various floating
  26. >> point types. It typically corresponds to what the hardare supports.
  27. >
  28. >  Couldn't you check the values in limits.h and typedef the type that fits,
  29. >or give an error or take the best fit if you can't find anything?
  30.  
  31. The question was to double the precision of long double, which this
  32. clearly won't do.
  33.  
  34. -- 
  35. -----------------------------------------
  36. Lawrence Kirby | fred@genesis.demon.co.uk
  37. Wilts, England | 70734.126@compuserve.com
  38. -----------------------------------------
  39.